﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Warhammer40K_Simulator.view
{
    /// <summary>
    /// Interaction logic for bullettext.xaml
    /// </summary>
    public partial class bullettext : UserControl
    {

        public static readonly DependencyProperty textproperty = DependencyProperty.Register("Text"
            , typeof(String)
            , typeof(bullettext)
            , new PropertyMetadata(text_PropertyChanged));

        public String Text
        {
            get { return (String)GetValue(textproperty); }
            set { SetValue(textproperty, value); }
        }

        public bool ShowCheckBox
        {
            get
            {
                model.uimisc ui = FindResource("uimisc") as model.uimisc;

                if (ui.SelectedUnit != null)
                {
                    if (!ui.SelectedUnit.ReadOnly)
                    {

                    }
                }

                return false;
            }
        }


        protected static void text_PropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
        }

        public static readonly DependencyProperty bulletproperty = DependencyProperty.Register("Bullet"
            , typeof(String)
            , typeof(bullettext)
            , new PropertyMetadata(bullet_PropertyChanged));

        public String Bullet
        {
            get { return (String)GetValue(bulletproperty); }
            set { SetValue(bulletproperty, value); }
        }


        protected static void bullet_PropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
        }

        public UIElementCollection Children
        {
            get { return bullettext_children.Children; }
        }

        public bullettext()
        {
            InitializeComponent();
        }
    }
}
